﻿using System;

namespace l1cs.server.clientpackets
{
    public class C_ReturnToLogin : ClientBasePacket
    {
        private const String _C_RETURN_TO_LOGIN = "[C] C_ReturnToLogin";
        private static Logger _log = Logger.getLogger( typeof( C_ReturnToLogin ).FullName );

        public C_ReturnToLogin( byte[] decrypt, ClientThread client )
            : base( decrypt )
        {
            String account = client.getAccountName();
            _log.finest( "account : " + account );
            LoginController.getInstance().logout( client );
        }

        override
        public String getType()
        {
            return "[C] C_ReturnToLogin";
        }
    }
}
